package com.lw.carmanage.mapper;

import com.lw.carmanage.pojo.SysUser;
import org.apache.ibatis.annotations.Select;

/**
 * @author Administrator
 * @version 1.0
 * @description:
 * @date 2022/3/29 21:08
 */
public interface SysUserMapper {

    @Select("select * from sys_user where user_id=#{userId}")
    SysUser findByUserId(Long userId);


    void addUser(SysUser user);


    @Select("select * from sys_user where username=#{username}")
    SysUser findByUserName(String username);

    @Select("select * from sys_user where mobile=#{mobile}")
    SysUser findByMobile(String mobile);

    @Select("select * from sys_user where email=#{email}")
    SysUser findByEmail(String email);
}
